//
//  FBDClientTool.h
//  baodongPro
//
//  Created by feng on 16/8/18.
//  Copyright © 2016年 proper. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FBDConversationListViewController.h"
#import "FBDUserListViewController.h"
#import "FBDTabBarViewController.h"
#import "CallViewController.h"


@interface FBDClientTool : NSObject<EMClientDelegate,EMChatManagerDelegate,EMContactManagerDelegate,EMGroupManagerDelegate,EMChatroomManagerDelegate,EMCallManagerDelegate>

@property(nonatomic,strong)FBDTabBarViewController *appTabBarVC;
@property (nonatomic,strong)FBDConversationListViewController* conversationListVC;//会话视图控制器
@property (nonatomic,strong)FBDUserListViewController *userListVC;//好友列表视图控制器

@property (strong, nonatomic) EMCallSession *callSession;
@property (strong, nonatomic) CallViewController *callController;

+ (instancetype)shareHelper;

- (void)asyncPushOptions;

- (void)asyncGroupFromServer;

- (void)asyncConversationFromDB;

- (void)makeCallWithUsername:(NSString *)aUsername
                     isVideo:(BOOL)aIsVideo;

- (void)hangupCallWithReason:(EMCallEndReason)aReason;

- (void)answerCall;

@end
